package com.lhc.nacosprovider.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhc.nacosprovider.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuchaoqun
 * @date 2022/6/17
 * @Description 菜单持久层
 */
@Mapper
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    default List<Menu> allMenu() {
        QueryWrapper<Menu> menuQueryWrapper = new QueryWrapper<>();
        return selectList(menuQueryWrapper);
    }

}
